package com.glodon.paas.storage;

import java.io.InputStream;
import java.util.List;

import com.glodon.paas.exception.PaasServerExceptionFactory;


public abstract class AbstractBulkStorage implements BulkStorage {
	
	@Override
	public boolean isPartialReadSupported() {
		return false;
	}
	
	@Override
	public ReadResult read(String key, long start, long end) {
		throw PaasServerExceptionFactory.unImplementedException("unimplemented of this storage.", null);
	}
	
	@Override
	public boolean isMultiPartUploadSupported(){
		return false;
	}
	
	@Override
	public InitResult initMultiPartUpload(String key) {
		throw PaasServerExceptionFactory.unImplementedException("unimplemented of this storage.", null);
	}
	
	@Override
	public void abortMultiPartUpload(InitResult handle){
		throw PaasServerExceptionFactory.unImplementedException("unimplemented of this storage.", null);
	}
	
	@Override
	public WriteResult uploadPart(InitResult handle, Part part, InputStream is){
		throw PaasServerExceptionFactory.unImplementedException("unimplemented of this storage.", null);
	}

	
	@Override
	public WriteResult completeMultiPartUpload(InitResult handle, List<Part> parts) {
		throw PaasServerExceptionFactory.unImplementedException("unimplemented of this storage.", null);
	}

}
